package cn.itcast.demo;

import java.util.Scanner;

public class Day3caogao {
    public static void main(String[] args) {
        Scanner r=new Scanner(System.in);
        System.out.println("请输入您的年龄:");
        int age=r.nextInt();
        System.out.println("请输入您的长度:");
        int cm=r.nextInt();
        if (age>=18 & cm>20){
            System.out.println("欢迎来到快乐国度");
        }else if (age<18 & cm<20){
            System.out.print("您不太行");
        }else if (cm<20){
            System.out.println("您太短了,只有"+cm+"厘米");
        }else {
            System.out.println("您太嫩了,只有"+age+"岁");
        }
    }
}
